﻿using System.Collections.Generic;
using eCommerce.db.DALRespository;
using eCommerce.db.DataRespository;

namespace eCommerce.db.BORespository
{
    public class SizeBo
    {
        public static List<SizeEntity> ListSizeExistInStoreByStoreProduct(int storeId, int productId)
        {
            return SizeDal.ListSizeExistInStoreByStoreProduct(storeId, productId);
        }

        public static List<SizeEntity> GetListByType(int typeId)
        {
            return SizeDal.GetListByType(typeId);
        }

        public static SizeEntity GetById(int id)
        {
            return SizeDal.GetById(id);
        }

        public static void Save(SizeEntity o)
        {
            SizeDal.Save(o);
        }

        public static void Delete(int id)
        {
            SizeDal.Delete(id);
        }  
    }
}
